package com.bw.service;

import com.bw.bean.Student;
import com.bw.dao.StuDao;
import org.apache.ibatis.annotations.Mapper;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuServiceImpl implements StuService{
    @Autowired
    StuDao stuDao;

    @Override
    public List<Student> list() {
        return stuDao.list();
    }

    @Override
    public int add(Student student) {
        return stuDao.add(student);
    }
}
